<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="css/mui.min.css" rel="stylesheet" />
		<style type="text/css">
			.mui-btn, button, input[type=button]
			{
				border: 0px;
			}
		</style>
	</head>

	<body>
		<script src="js/mui.min.js"></script>
		<script type="text/javascript">
			mui.init();
			mui.plusReady(function(){
				var cu=plus.webview.currentWebview();
				var title=document.querySelector(".mui-title");
				title.innerHTML="设置"+cu.type;
				var txt=document.querySelector("#txt");
				txt.value=cu.data;
				
				document.getElementById("save").addEventListener("tap",function(){
					mui.fire(cu.opener(),"set",{type:cu.type,data:txt.value});
					mui.back();
				});
			});
			
		</script>
		<header class="mui-bar mui-bar-nav">
		    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
		    <button type="button" class="mui-btn mui-btn-outlined mui-pull-right" id="save">保存</button>
		    <h1 class="mui-title"></h1>
		</header>
		<div class="mui-content">
		   <textarea id="txt" name="" rows="" cols="" style="height: auto;"></textarea>
		</div>
	</body>
	<script type="text/javascript">
		
	</script>
</html>